package com.intigas.credigas.control.action;

import java.util.List;

import com.intigas.credigas.control.service.ControlCreditoService;
import com.intigas.sysgas.model.CfgCliente;
import com.opensymphony.xwork2.ActionSupport;

public class ListarClienteAction extends ActionSupport{
	
	private static final long serialVersionUID = 1L;

	List<CfgCliente> clientes;
	ControlCreditoService service;
	
	public ListarClienteAction(){		
		service = new ControlCreditoService();
	}	
	
	public String execute(){
		clientes = service.listarClientes();		
		return SUCCESS;
	}

	public List<CfgCliente> getClientes() {
		return clientes;
	}

	public void setClientes(List<CfgCliente> clientes) {
		this.clientes = clientes;
	}	
}
